/**
 * 休眠 单位为 s
 * */
const sleep = async (time) => {
  await new Promise((resolve) => {
    setTimeout(() => {resolve(); console.log(`sleep ${time} s`)}, time * 1000)
  })
}
export default sleep
